﻿@model sBlog.Net.Models.Account.UpdateProfileModel
@{
    ViewBag.Title = string.Format("{0} || {1}", Model.Title, "Update your profile");
}
@Html.Partial("UpdateStatus", Model.UpdateStatus)
<script type="text/javascript">
    $(document).ready(function () {
        $("#Birthday").datepicker(
        {
            changeMonth: true,
            changeYear: true,
            yearRange: '-85:+0',
            dateFormat: 'mm/dd/yy',
            showAnim: 'slideDown'
        });
    });
</script>
<div class="cpHeader">
    <b>Profile settings</b>
</div>
<div class="cpContent">
    @using (Html.BeginForm())
    {
        @Html.HiddenFor(m => m.UserSite)
        @Html.ValidationSummary()
        <div>
            <fieldset>
                <div class="editor-label">
                    @Html.LabelFor(m => m.UserEmailAddress)
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(m => m.UserEmailAddress, new { @class = "inputBoxBig" })
                </div>
                <div class="editor-label">
                    @Html.LabelFor(m => m.UserDisplayName)
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(m => m.UserDisplayName, new { @class = "inputBoxBig" })
                </div>
                @*
                Phi Add
                *@
                <div class="editor-label">
                    @Html.LabelFor(m => m.Birthday)
                </div>
                <div class="editor-field">
                    @Html.TextBox("Birthday", Convert.ToDateTime(Model.Birthday).ToShortDateString())
                </div>
                <div class="editor-label">
                    @Html.LabelFor(m => m.JobDescription)
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(m => m.JobDescription, new { @class = "inputBoxBig" })
                </div>
                <div class="editor-label">
                    @Html.LabelFor(m => m.WorkAt)
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(m => m.WorkAt, new { @class = "inputBoxBig" })
                </div>
                <div class="editor-label">
                    @Html.LabelFor(m => m.Married)
                </div>
                <div class="editor-field">
                    @Html.CheckBoxFor(m => m.Married, new { @class = "inputBoxBig" })
                </div>
                <div class="editor-label">
                    @Html.LabelFor(m => m.City)
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(m => m.City, new { @class = "inputBoxBig" })
                </div>
                @*
                End
                *@
                <div class="editor-label">
                    @Html.LabelFor(m => m.NewPassword)
                </div>
                <div class="editor-field">
                    @Html.PasswordFor(m => m.NewPassword, new { @class = "inputBoxBig" })
                </div>
                <div class="editor-label">
                    @Html.LabelFor(m => m.ConfirmPassword)
                </div>
                <div class="editor-field">
                    @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "inputBoxBig" })
                </div>
                @*<div class="editor-label">
                    @Html.LabelFor(m => m.UserSite)
                </div>*@ @*<div class="editor-field">
                    @Html.TextBoxFor(m => m.UserSite, new { @class = "inputBoxBig" })
                </div>*@
                <p>
                    <input type="submit" value="Update Profile" class="submitBtn" />
                </p>
            </fieldset>
        </div>
    }
</div>
